home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / music / 7 / pascal / pasnotes.doc < prev    next >
Text File  |  1985-11-19  |  3KB  |  94 lines

  1. #24 - 437 chars  02/23/86 17:23:49
  2. Re: Personal Pascal Bugs
  3.  
  4.  
  5. Several bugs have been reported in the Personal Pascal
  6. system, most of which can be easily fixed.  A patch
  7. program will be available soon on this system which fixes
  8. the following problems:
  9.   - the routine "Bring_To_Front" not found
  10.   - mysterious numbers in the ITEM SELECTOR dialog
  11.   - "Delete_Dialog" sometimes crashing
  12.   - a few more fairly obscure bugs
  13. In addition, read the following few messages for a few
  14. fixes you can apply now.
  15.  
  16.  
  17. #28 - 168 chars  02/24/86 10:19:06
  18. Re: Pascal FOR loop variable
  19.  
  20.  
  21. To- David Duberman
  22.   Yes, we do intend to allow Long_Integer FOR loop counters.
  23. We also intend to allow variables to occupy more than 32K of
  24. space in a future release.
  25.  
  26.  
  27. #30 - 398 chars  02/24/86 10:27:44
  28. Re: Pascal output to printer
  29.  
  30.  
  31. If you want to open a file to the printer using Personal
  32. Pascal, the following procedure call should work:
  33.   rewrite( f, 'prn:' ) ;
  34. if f is of type "text".  ('lst:' works too, as do the upper-
  35. case versions)  You can also make the standard output go to
  36. the printer with:
  37.   rewrite( output, 'prn:' ) ;
  38. DON'T use the "reset" call with the printer, since that call
  39. opens a file for INPUT, not OUTPUT.
  40.  
  41.  
  42. #33 - 617 chars  02/24/86 10:40:31
  43. Re: Pascal with two drives
  44.  
  45.  
  46. Some people have had difficulty telling Pascal to put their
  47. source and object on drive B:, if they have a two-driver
  48. system.  In order to edit, compiler, or link a file on
  49. drive B:, select the option so you get the ITEM SELECTOR
  50. dialog, then do the following:
  51.   1.  Click the mouse on the upper text field (where the
  52.       directory is shown)
  53.   2.  Use the keyboard to change the leading "A:" to "B:"
  54.   3.  Move the mouse down into the area where the file names
  55.       are shown, and click the mouse once (this tells
  56.       GEM that you have changed the directory).
  57. You should now see the list of files on the B drive.
  58.  
  59.  
  60. #35 - 795 chars  02/24/86 11:30:12
  61. Re: STRING type w/ Pascal
  62.  
  63.  
  64. There are a couple of things to keep in mind when using the STRING
  65. type in Personal Pascal.  Whenever you use the STRING type, with or
  66. without a length specified, you are declaring a "new-type" (see page
  67. 6-20 of your manual).  A "new-type" is incompatible with all other
  68. new-types.  So, if you declare a procedure like this:
  69.   PROCEDURE p( VAR s : STRING[10] ) ;
  70. there is no way to pass another variable declared as STRING[10] to the
  71. procedure, since the two "STRING[10]" variables are different types!
  72. In order to pass a variable to the procedure, declare a type in the
  73. TYPE section like this:
  74.   TYPE Str10 = STRING [ 10 ] ;
  75. and declare the procedure like this:
  76.   PROCEDURE p( VAR s : Str10 ) ;
  77. Then, if you declare the string you want to pass as type Str10 as
  78. well, everything will work fine.
  79.  
  80.  
  81. #37 - 568 chars  02/24/86 11:37:10
  82. Re: Libraries w/ Pascal
  83.  
  84.  
  85. Several people have asked how to put Personal Pascal routines into a
  86. library (like PASGEM and PASLIB).  If you want to do this, you must
  87. have the library manager AR68, available from Atari, not us.  Make
  88. sure you get the patched version, or instructions on patching it, since
  89. it won't work unchanged.  Also, you need the program FIXO to make your
  90. object files an even number of long-words in length.  Your Pascal modules
  91. should be compiled with the M+ and E+ options, and shouldn't reference
  92. any global variables, if you want any Pascal program to be able to use
  93. them
  94. ə